#pragma once
#include "Main.h"
#include <utility>

using namespace std;

class HTTPResponseHeaders
{
public:
	HTTPResponseHeaders();
	~HTTPResponseHeaders();

	vector<pair<string, string>  > mHeaders;
	string mResponseCode;

	void AddHeader(string Name, string Value);
	void SetResponseCode(int Code, string Description, string Version);

	void operator += (pair<string, string> aHeader);

	/**
	* Must send headers straight after this function, it assumes they're sent when it's called
	**/
	string ToString();

	bool HaveSent();

private:
	bool Sent;
};

